const path = require('path')

const relativePath = path.posix.relative('/Users/liepin/MyStudy/code/violet-koa', '/Users/liepin/MyStudy/code/violet-koa/src/node-path.js')
console.log(relativePath)